﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace HYSoft.IDAL
{
    /// <summary>
    /// 接口层usr2node
    /// </summary>
    public interface Iusr2node
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int index, int mac, string simno, string addr, string msgno, int areano, int adminno, int intvalue1, int intvalue2, int intvalue3, string charvalue1, string charvalue2, string charvalue3, string wendu, string dianchi, string gongdian, string dianliang, string chuanganqi, string jingbao, string tux, int value0, int rate0, int value1, int rate1, int value2, int rate2, int value3, int rate3, int value4, int rate4, int value5, int rate5, int user_index, string name, string mobile);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        bool Add(HYSoft.Model.usr2node model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(HYSoft.Model.usr2node model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(int index, int mac, string simno, string addr, string msgno, int areano, int adminno, int intvalue1, int intvalue2, int intvalue3, string charvalue1, string charvalue2, string charvalue3, string wendu, string dianchi, string gongdian, string dianliang, string chuanganqi, string jingbao, string tux, int value0, int rate0, int value1, int rate1, int value2, int rate2, int value3, int rate3, int value4, int rate4, int value5, int rate5, int user_index, string name, string mobile);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        HYSoft.Model.usr2node GetModel(int index, int mac, string simno, string addr, string msgno, int areano, int adminno, int intvalue1, int intvalue2, int intvalue3, string charvalue1, string charvalue2, string charvalue3, string wendu, string dianchi, string gongdian, string dianliang, string chuanganqi, string jingbao, string tux, int value0, int rate0, int value1, int rate1, int value2, int rate2, int value3, int rate3, int value4, int rate4, int value5, int rate5, int user_index, string name, string mobile);
        HYSoft.Model.usr2node DataRowToModel(DataRow row);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        /// <summary>
        /// 获得前几行数据
        /// </summary>
        DataSet GetList(int Top, string strWhere, string filedOrder);
        int GetRecordCount(string strWhere);
        DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        /// <summary>
        /// 根据分页获得数据列表
        /// </summary>
        //DataSet GetList(int PageSize,int PageIndex,string strWhere);
        #endregion  成员方法
        #region  MethodEx

        #endregion  MethodEx
    }
}